package config_order;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-08-16 16:20
 */
@ComponentScan("config_order.config")
public class Run {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		// 注册 Configuration Class
		context.register(Run.class);

		// 启动 Spring 应用上下文
		context.refresh();


		//关闭上下文
		context.close();
	}
}
